package cn.china.sharpsword.common.config;


import cn.china.sharpsword.common.io.Resources;
import lombok.extern.slf4j.Slf4j;

import java.io.IOException;
import java.io.Reader;

@Slf4j
public class XMLConfigReader implements ConfigReader {

    @Override
    public Reader read() {
        try {
            return Resources.getResourceAsReader("mybatis-plus.xml");
        } catch (IOException e) {
            log.error("{}", e.getMessage(), e);
        }
        return null;
    }
}
